package com.jybd.live.service.impl;

import com.jybd.live.dao.CameraLiveRelDao;
import com.jybd.live.model.CameraLiveRel;
import com.jybd.live.service.CameraLiveRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CameraLiveRelServiceImpl implements CameraLiveRelService {

    private CameraLiveRelDao cameraLiveRelDao;

    @Autowired
    public CameraLiveRelServiceImpl(CameraLiveRelDao cameraLiveRelDao) {
        this.cameraLiveRelDao = cameraLiveRelDao;
    }

    @Override
    public CameraLiveRel getCameraLiveRelInUse(Integer cameraId) {
        return cameraLiveRelDao.getCameraLiveRelInUse(cameraId);
    }
}
